import {requestClient} from '#/api/request';

enum Api {
  OPTIONS_LIST = '/project/list',
  OPTIONS_STATUS = '/project/list/status',
}

export namespace ProjectList {
  /** 登录接口参数 */
  export interface QueryParams {
    password: string;
    username: string;
  }

  /** 登录接口返回值 */
  export interface ResultList {
    accessToken: string;
    desc: string;
    realName: string;
    refreshToken: string;
    userId: string;
    username: string;
  }
}


/**
 * 获取列表
 */
export async function projectListApi(data: any) {
  return requestClient.post<any>(Api.OPTIONS_LIST, data);
}
/**
 * 获取项目状态
 */
export async function projectStatusApi() {
  return requestClient.get(Api.OPTIONS_STATUS);
}
